<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

$config = array(
	
	//START SIUL
	
	'admin-prospeklog-update' => array(
		array('field'=>'user_id', 'label'=>'Username', 'rules'=>'required'),
		array('field'=>'status_id', 'label'=>'Status', 'rules'=>'required'),
		array('field'=>'tanggal', 'label'=>'Tanggal', 'rules'=>'required'),
		array('field'=>'waktu', 'label'=>'Waktu', 'rules'=>'required'),
		array('field'=>'keterangan', 'label'=>'Keterangan', 'rules'=>'required'),
	),
	
	//STOP SIUL
	
	'admin-students-add' => array(
		array('field'=>'name', 'label'=>'Nama', 'rules'=>'required'),
		array('field'=>'nis', 'label'=>'NIS', 'rules'=>'required|callback__unique_field[nis,id]'),
		array('field'=>'nisn', 'label'=>'NISN', 'rules'=>'required|callback__unique_field[nisn,id]'),
		array('field'=>'birth_place', 'label'=>'Tempat Lahir', 'rules'=>'required'),
		array('field'=>'birthday', 'label'=>'Tanggal Lahir', 'rules'=>'required'),
		array('field'=>'sex', 'label'=>'Jenis Kelamin', 'rules'=>'required'),
		array('field'=>'religion', 'label'=>'Agama', 'rules'=>'required'),
		array('field'=>'status_in_family', 'label'=>'Status dlm Keluarga', 'rules'=>'required'),
		array('field'=>'child_order', 'label'=>'Anak Ke', 'rules'=>'required'),
		array('field'=>'address', 'label'=>'Alamat', 'rules'=>'required'),
		array('field'=>'city', 'label'=>'Kota', 'rules'=>'required'),
		array('field'=>'phone', 'label'=>'Telepon', 'rules'=>'required'),
		array('field'=>'previous_school', 'label'=>'Asal Sekolah', 'rules'=>'required'),
		array('field'=>'first_class', 'label'=>'Kelas Awal', 'rules'=>'required'),
		array('field'=>'date_arrive', 'label'=>'Tanggal Masuk', 'rules'=>'required'),
		array('field'=>'father_name', 'label'=>'Nama Ayah', 'rules'=>'required'),
		array('field'=>'mother_name', 'label'=>'Nama Ibu', 'rules'=>'required'),
		array('field'=>'parent_address', 'label'=>'Alamat Ortu', 'rules'=>'required'),
		array('field'=>'parent_profession', 'label'=>'Profesi Ortu', 'rules'=>'required'),
		array('field'=>'trustee_name', 'label'=>'Nama Wali', 'rules'=>'required'),
		array('field'=>'trustee_address', 'label'=>'Alamat Wali', 'rules'=>'required'),
		array('field'=>'trustee_phone', 'label'=>'Telepon Wali', 'rules'=>'required'),
		array('field'=>'trustee_profession', 'label'=>'Profesi Wali', 'rules'=>'required'),
		array('field'=>'class_name', 'label'=>'Kelas', 'rules'=>'required'),
		array('field'=>'absent', 'label'=>'No Absen', 'rules'=>'required|numeric'),
	),
	
	'admin-employees-add' => array(
		array('field'=>'nik', 'label'=>'NIK', 'rules'=>'required|callback__unique_field[nik,id]'),
		array('field'=>'name', 'label'=>'Nama', 'rules'=>'required'),
		array('field'=>'address', 'label'=>'Alamat', 'rules'=>'required'),
		array('field'=>'city', 'label'=>'Kota', 'rules'=>'required'),
		array('field'=>'phone', 'label'=>'Telepon', 'rules'=>'required'),
		array('field'=>'birth_place', 'label'=>'Tempat Lahir', 'rules'=>'required'),
		array('field'=>'birthday', 'label'=>'Tanggal Lahir', 'rules'=>'required'),
		array('field'=>'sex', 'label'=>'Jenis Kelamin', 'rules'=>'required'),
		array('field'=>'religion', 'label'=>'Agama', 'rules'=>'required'),
		array('field'=>'start_working', 'label'=>'Tanggal Kerja', 'rules'=>'required'),
		array('field'=>'start_working_at_school', 'label'=>'Tanggal Kerja di Sekolah', 'rules'=>'required'),
		array('field'=>'diploma', 'label'=>'Tingkat Pendidikan', 'rules'=>'required'),
		array('field'=>'diploma_year', 'label'=>'Tahun Ijazah', 'rules'=>'required'),
		array('field'=>'diploma_major', 'label'=>'Jurusan Kuliah', 'rules'=>'required'),
		array('field'=>'grade', 'label'=>'Golongan Kepegawaian', 'rules'=>'required'),
	),
	
	'admin-teachers-add' => array(
		array('field'=>'nip', 'label'=>'NIP', 'rules'=>'required|callback__unique_field[nip,id]'),
		array('field'=>'nuptk', 'label'=>'NUPTK', 'rules'=>'required|callback__unique_field[nuptk,id]'),
		array('field'=>'name', 'label'=>'Nama', 'rules'=>'required'),
		array('field'=>'address', 'label'=>'Alamat', 'rules'=>'required'),
		array('field'=>'city', 'label'=>'Kota', 'rules'=>'required'),
		array('field'=>'phone', 'label'=>'Telepon', 'rules'=>'required'),
		array('field'=>'birth_place', 'label'=>'Tempat Lahir', 'rules'=>'required'),
		array('field'=>'birthday', 'label'=>'Tanggal Lahir', 'rules'=>'required'),
		array('field'=>'sex', 'label'=>'Jenis Kelamin', 'rules'=>'required'),
		array('field'=>'religion', 'label'=>'Agama', 'rules'=>'required'),
		array('field'=>'start_working', 'label'=>'Tanggal Kerja', 'rules'=>'required'),
		array('field'=>'start_working_at_school', 'label'=>'Tanggal Kerja di Sekolah', 'rules'=>'required'),
		array('field'=>'diploma', 'label'=>'Tingkat Pendidikan', 'rules'=>'required'),
		array('field'=>'diploma_year', 'label'=>'Tahun Ijazah', 'rules'=>'required'),
		array('field'=>'diploma_major', 'label'=>'Jurusan Kuliah', 'rules'=>'required'),
		array('field'=>'grade', 'label'=>'Golongan Kepegawaian', 'rules'=>'required'),
	),
	
	'admin-subjects-add' => array(
		array('field'=>'name', 'label'=>'Nama', 'rules'=>'required|callback__unique_field[name,id]'),
		array('field'=>'code', 'label'=>'Nama Pendek', 'rules'=>'required|callback__unique_field[name,id]'),
	),
	
	'admin-school_schedules-add' => array(
		array('field'=>'school_day', 'label'=>'Hari', 'rules'=>'required'),
	),
	
	'admin-school_hours-add' => array(
		array('field'=>'class_grade_id', 'label'=>'Kelas', 'rules'=>'required'),
		array('field'=>'order_hour', 'label'=>'Jam Ke'),
		array('field'=>'time_start', 'label'=>'Jam Mulai', 'rules'=>'required'),
		array('field'=>'time_end', 'label'=>'Jam Selesai', 'rules'=>'required'),
		array('field'=>'apposition', 'label'=>'Keterangan'),
	),
	
	'admin-class_grades-add' => array(
		array('field'=>'name', 'label'=>'Jenjang Kelas', 'rules'=>'required'),
	),
	
	'admin-school_years-add' => array(
		array('field'=>'school_year', 'label'=>'Tahun Ajaran', 'rules'=>'required'),
		array('field'=>'odd_semester_start', 'label'=>'Awal Semester Ganjil', 'rules'=>'required'),
		array('field'=>'odd_semester_end', 'label'=>'Akhir Semester Ganjil', 'rules'=>'required'),
		array('field'=>'even_semester_start', 'label'=>'Awal Semester Genap', 'rules'=>'required'),
		array('field'=>'even_semester_end', 'label'=>'Akhir Semester Genap', 'rules'=>'required'),
		array('field'=>'active_semester', 'label'=>'Semester Aktif', 'rules'=>'required|numeric'),
	),
	
	'admin-extracurriculars-add' => array(
		array('field'=>'name', 'label'=>'Nama', 'rules'=>'required|callback__unique_field[name,id]'),
		array('field'=>'schedule', 'label'=>'Jadwal', 'rules'=>'required'),
		array('field'=>'place', 'label'=>'Tempat', 'rules'=>'required'),
	),
	
	'admin-students_extracurriculars-add' => array(
		array('field'=>'extracurricular_id', 'label'=>'Ekstrakurikuler', 'rules'=>'required'),
		array('field'=>'class_id', 'label'=>'Kelas', 'rules'=>'required'),
	),
	
	'admin-books-add' => array(
		array('field'=>'title', 'label'=>'Judul', 'rules'=>'required'),
		array('field'=>'author', 'label'=>'Penulis', 'rules'=>'required'),
		array('field'=>'publisher', 'label'=>'Penerbit', 'rules'=>'required'),
		array('field'=>'publish_year', 'label'=>'Tahun Terbit', 'rules'=>'required|numeric'),
		array('field'=>'buy_year', 'label'=>'Tahun Pembelian Terakhir', 'rules'=>'required|numeric'),
		array('field'=>'price', 'label'=>'Harga', 'rules'=>'required|numeric'),
		array('field'=>'qty', 'label'=>'Jumlah Persediaan', 'rules'=>'required|numeric'),
	),
	
	'admin-classes-add' => array(
		array('field'=>'name', 'label'=>'Nama Ruang', 'rules'=>'required'),
		array('field'=>'room_code', 'label'=>'Kode Ruang', 'rules'=>'required'),
	),
	
	'admin-inventories-add' => array(
		array('field'=>'name', 'label'=>'Nama', 'rules'=>'required'),
		array('field'=>'qty', 'label'=>'Jumlah', 'rules'=>'required|numeric'),
	),
	
	'admin-absences-add' => array(
		array('field'=>'name', 'label'=>'Nama', 'rules'=>'required'),
		array('field'=>'code', 'label'=>'Singkatan Absensi', 'rules'=>'required'),
	),
	
	'admin-picket_schedules-add' => array(
		array('field'=>'picket_day', 'label'=>'Hari', 'rules'=>'required'),
	),
	
	'admin-officials-add-class' => array(
		array('field'=>'position_id', 'label'=>'Jabatan', 'rules'=>'required'),
		array('field'=>'class_id', 'label'=>'Kelas', 'rules'=>'required'),
	),
	
	'admin-officials-add-subject' => array(
		array('field'=>'position_id', 'label'=>'Jabatan', 'rules'=>'required'),
		array('field'=>'subject_id', 'label'=>'Mata Pelajaran', 'rules'=>'required'),
	),
	
	'admin-officials-add' => array(
		array('field'=>'position_id', 'label'=>'Jabatan', 'rules'=>'required'),
	),
	
	'admin-teachers_extracurriculars-add' => array(
		array('field'=>'extracurricular_id', 'label'=>'Ekstrakurikuler', 'rules'=>'required'),
	),
	
	'teacher-announcements-add' => array(
		array('field'=>'headline', 'label'=>'Judul', 'rules'=>'required'),
		array('field'=>'announce_date', 'label'=>'Tanggal', 'rules'=>'required'),
		array('field'=>'announcement', 'label'=>'Pengumuman', 'rules'=>'required'),
		array('field'=>'subject_id', 'label'=>'Mata Pelajaran', 'rules'=>'required'),
		array('field'=>'classes_id[]', 'label'=>'Daftar Kelas', 'rules'=>'required'),
		array('field'=>'published', 'label'=>'Published', 'rules'=>'')
	),
	
	'teacher-test_values-add' => array(
		array('field'=>'test_order', 'label'=>'Ulangan Harian Ke', 'rules'=>'required|numeric'),
	),

	'student-change-password' => array(
		array('field'=>'current_password', 'label'=>'Password Sekarang', 'rules'=>'required|callback__matches_current_password'),
		array('field'=>'password', 'label'=>'Password Baru', 'rules'=>'required'),
		array('field'=>'repeat_password', 'label'=>'Ulangi Password Baru', 'rules'=>'required|matches[password]'),
	),

	'book-add' => array(
		array('field'=>'title', 'label'=>'Judul', 'rules'=>'required'),
		array('field'=>'author', 'label'=>'Pengarang', 'rules'=>'required'),
		array('field'=>'publisher', 'label'=>'Penerbit', 'rules'=>'required'),
		array('field'=>'publish_year', 'label'=>'Tahun Terbit', 'rules'=>'required'),
		array('field'=>'qty', 'label'=>'Jumlah', 'rules'=>'required|numeric'),
		array('field'=>'cover_path', 'label'=>'Cover', 'rules'=>''),
		array('field'=>'buy_year', 'label'=>'Tahun Beli', 'rules'=>''),
		array('field'=>'price', 'label'=>'Harga', 'rules'=>''),
		array('field'=>'apposition', 'label'=>'Keterangan', 'rules'=>''),
	),
);
